/*
 * @Author: wuzhouhai wzh200x@126.com
 * @Date: 2024-07-09 11:52:27
 * @LastEditors: wuzhouhai wzh200x@126.com
 * @LastEditTime: 2025-03-14 15:51:52
 * @FilePath: \dwys_web\extensions\phoenix-plugin-client\assets\core\defines\platform.define.ts
 * @Description: 
 */
//@ts-ignore
import { Enum } from "cc";

export const PlatformDefine = Enum({
    PhoenixGame : 0,      //  默认平台
    WeChatGame : 1,       // 微信
    AliPayGame : 2,       // 支付宝
    ByteJumpGame: 3,      // 字节跳动
    AliPayBaBaGame: 4,   // 支付宝(芭芭农场)
    KuaiShouGame: 5, // 快手
    VivoGame: 6, //  vivo
    OppoGame: 7, //  oppo
    XiaoMiGame: 8, //  xiaomi
    HuaWeiGame: 9, //  huawei
}) 

export class PlatformDefineHelper {
    static GetPlatformString(platformType: number): string {
        switch (platformType) {
            case PlatformDefine.PhoenixGame:
                return "PhoenixGame";
            case PlatformDefine.WeChatGame:
                return "WeChatGame";
            case PlatformDefine.AliPayGame:
                return "AliPayGame";
            case PlatformDefine.ByteJumpGame:
                return "ByteJumpGame";
            case PlatformDefine.AliPayBaBaGame:
                return "AliPayBaBaGame";
            case PlatformDefine.KuaiShouGame:
                return "KuaiShouGame";
            case PlatformDefine.VivoGame:
                return "VivoGame";
            case PlatformDefine.OppoGame:
                return "OppoGame";    
            case PlatformDefine.XiaoMiGame:
                return "XiaoMiGame";    
            case PlatformDefine.HuaWeiGame:
                return "HuaWeiGame";       
            default:
                return "UnknownGame";
        }
    }
}

